package com.gitee.orderfegin.service;

import com.gitee.bodboy.result.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName PaymentService
 * @Description
 * @Author xiongchao
 * @Date 2020/12/18 15:47
 **/
@Component
@FeignClient(value = "payment")
public interface PaymentService {

    @GetMapping("/payment/selectOne")
    CommonResult getById(@RequestParam("id") Integer id);

    @GetMapping("/payment/feign/timeout")
    String feignTimeout();
}
